package accel.dataholders;

public class Stats
{
	public int maxstrength; //tells how much damage will cause
	public int maxenergy;	 //the stronger is attack, the more energy it will use 
	public int maxhealth;
	public int maxcharisma; //the character with more charisma attacks first;
	public int maxspeed;	//the faster, the more attack you can deal within one round
	public int maxlearningspeed;
	
	public Stats (int str, int ener, int heal, int cha, int speed, int learningspeed)
	{
		this.maxstrength = str;
		this.maxenergy = ener;
		this.maxhealth = heal;
		this.maxcharisma = cha;
		this.maxspeed = speed;
		this.maxlearningspeed = learningspeed;
	}
	
	private int strengthPenalty = 0;
	public void setStrengthPenalty(int penalty) { strengthPenalty = penalty;}
	public void removeStrengthPenalty() { strengthPenalty = 0; }
	public int strength(){ return maxstrength - strengthPenalty; }
	
	private int energyPenalty =0;
	public void setEnergyPenalty(int penalty) { energyPenalty = penalty; }
	public void removeEnergyPenalty() { energyPenalty = 0; }
	public int energy(){ return maxenergy - energyPenalty; }
	
	private int healthPenalty = 0; // equal to damage
	public void setHealthPenalty(int penalty) { healthPenalty = penalty; }
	public void removeHealthPenalty() { healthPenalty = 0; }
	public int health(){ return maxhealth - healthPenalty; }
	
	private int charismaPenalty = 0;
	public void setCharismaPenalty(int penalty) { charismaPenalty = penalty; }
	public void removeCharismaPenalty() { charismaPenalty = 0; }
	public int charisma(){ return maxcharisma - charismaPenalty; }
	
	private int speedPenalty = 0;
	public void setSpeedPenalty(int penalty) { speedPenalty = penalty; }
	public void removeSpeedPenalty() { speedPenalty = 0; }
	public int speed(){ return maxspeed - speedPenalty; }
	
	private int lsPenalty = 0;
	public void setLearningSpeedPenalty(int penalty) { lsPenalty = penalty; }
	public void removeLearningSpeedPenalty() { lsPenalty = 0; }
	public int learningSpeed(){ return maxlearningspeed - lsPenalty; }
}